#include "CCNotify/CCNotify.hh"
#include <iostream>

using namespace wb;
int main(int argc, char* argv[])
{
    CCNotify c;
    c.WatchCtl(CCNotify::kOPEN | CCNotify::kMODIFY | CCNotify::kCREATE, "./");
    std::vector<Event*> v;
    while (1)
    {
        int n = c.Watch(v);

        std::cout << n << " events occured\n";
    }

    return 0;
}